<template>
    <div class="material-container">
      <el-row>
        <el-breadcrumb separator="/">
          <el-breadcrumb-item >首页</el-breadcrumb-item>
          <el-breadcrumb-item>业务管理</el-breadcrumb-item>
          <el-breadcrumb-item>材料管理</el-breadcrumb-item>
        </el-breadcrumb>
      </el-row>
      <el-row>
        <el-form label-width="80px">
          <el-row>
            <el-col :span="5">
              <el-form-item label="材料名" label-width="80px">
                <el-input size="small" v-model="input" placeholder="请输入内容"></el-input>
              </el-form-item>
            </el-col>
            <el-col :span="5">
              <el-form-item label="入库" label-width="80px">
                <el-input size="small" v-model="input0" ></el-input>
              </el-form-item>
            </el-col>
            <el-col :span="5">
              <el-form-item label="出库" label-width="80px">
                <el-input size="small" v-model="input1" ></el-input>
              </el-form-item>
            </el-col>
            <el-col :span="3">
              <el-form-item>
                <el-button size="small" type="success" icon="el-icon-check" circle></el-button>
              </el-form-item>
            </el-col>
          </el-row>
        </el-form>
      </el-row>
      <el-table
        :data="tableData"
        stripe
        style="width: 100%">
        <el-table-column
          prop="material"
          label="材料"
          width="180">
        </el-table-column>
        <el-table-column
          prop="inventory"
          label="库存"
          width="180">
        </el-table-column>
        <el-table-column
          prop="address"
          label="地址"
          width="180">
        </el-table-column>
        <el-table-column
          prop="date"
          label="日期">
        </el-table-column>
      </el-table>
      <el-pagination
        small
        layout="prev, pager, next"
        :total="50">
      </el-pagination>
    </div>
</template>

<script>
    export default {
        name: "material",
      data() {
        return {
          input:'',
          input0:'',
          input1:'',
          tableData: [{
            date: '2016-05-02',
            material: '绿茶',
            inventory: '1000',
            address:'上海市普陀区金沙江路 1519 弄'
          }, {
            date: '2016-05-04',
            material: '红茶',
            inventory: '2000',
            address:'上海市普陀区金沙江路 1519 弄'
          }, {
            date: '2016-05-01',
            material: '奶茶杯',
            inventory: '10000',
            address:'上海市普陀区金沙江路 1514 弄'
          }, {
            date: '2016-05-03',
            material: '吸管',
            inventory: '20000',
            address:'上海市普陀区金沙江路 1514 弄'
          }, {
            date: '2016-05-03',
            material: '餐巾',
            inventory: '20000',
            address:'上海市普陀区金沙江路 1514 弄'
          }, {
            date: '2016-05-03',
            material: '普洱茶',
            inventory: '5000',
            address:'上海市普陀区金沙江路 1519 弄'
          }]
        }
      }
    }
</script>

<style scoped>

</style>
